2000W / 48V LLC Battery-Charger  V1.00
XMC_RTC_TIME Struct Reference

#include <xmc_rtc.h>

Public Attributes

union {
   uint32_t   raw0
 
   struct {
      uint32_t   seconds: 6
 
      uint32_t   __pad0__: 2
 
      uint32_t   minutes: 6
 
      uint32_t   __pad1__: 2
 
      uint32_t   hours: 5
 
      uint32_t   __pad2__: 3
 
      uint32_t   days: 5
 
      uint32_t   __pad3__: 3
 
   } 
 
}; 
 
union {
   uint32_t   raw1
 
   struct {
      uint32_t   daysofweek: 3
 
      uint32_t   __pad0__: 5
 
      uint32_t   month: 4
 
      uint32_t   __pad1__: 4
 
      uint32_t   year: 16
 
   } 
 
}; 
 

Detailed Description

Time values of RTC

The structure presents a convenient way to set/obtain the time values for seconds, minutes, hours, days, month and year of RTC. The XMC_RTC_SetTime() and XMC_RTC_GetTime() can be used to populate the structure with the time value of RTC

Definition at line 215 of file xmc_rtc.h.

Member Data Documentation

◆ @40

union { ... }

◆ @42

union { ... }

◆ __pad0__

uint32_t XMC_RTC_TIME::__pad0__

Definition at line 223 of file xmc_rtc.h.

◆ __pad1__

uint32_t XMC_RTC_TIME::__pad1__

Definition at line 225 of file xmc_rtc.h.

◆ __pad2__

uint32_t XMC_RTC_TIME::__pad2__

Definition at line 227 of file xmc_rtc.h.

◆ __pad3__

uint32_t XMC_RTC_TIME::__pad3__

Definition at line 229 of file xmc_rtc.h.

◆ days

uint32_t XMC_RTC_TIME::days

Days time value (0-Actual days of month: Above this causes this bitfield to be set with 0)

Definition at line 228 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().

◆ daysofweek

uint32_t XMC_RTC_TIME::daysofweek

Days of week time value (0-6: Above this causes this bitfield to be set with 0)

Definition at line 238 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().

◆ hours

uint32_t XMC_RTC_TIME::hours

Hours time value (0-23: Above this causes this bitfield to be set with 0)

Definition at line 226 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().

◆ minutes

uint32_t XMC_RTC_TIME::minutes

Minutes time value (0-59: Above this causes this bitfield to be set with 0)

Definition at line 224 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().

◆ month

uint32_t XMC_RTC_TIME::month

Month time value (0-11: Above this causes this bitfield to be set with 0)

Definition at line 240 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().

◆ raw0

uint32_t XMC_RTC_TIME::raw0

◆ raw1

uint32_t XMC_RTC_TIME::raw1

◆ seconds

uint32_t XMC_RTC_TIME::seconds

Seconds time value (0-59: Above this causes this bitfield to be set with 0)

Definition at line 222 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().

◆ year

uint32_t XMC_RTC_TIME::year

Year time value

Definition at line 242 of file xmc_rtc.h.

Referenced by XMC_RTC_GetTimeStdFormat(), XMC_RTC_SetTime(), and XMC_RTC_SetTimeStdFormat().


The documentation for this struct was generated from the following file: